package com.模板模式.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {

    @Excel(name = "订单id",needMerge = true)
    private Long orderId;

    @Excel(name = "支付金额",needMerge = true)
    private BigDecimal payAmount;

    @Excel(name = "状态",replace = {"1_待支付","2_待发货","3_待收货","4_已完成"},needMerge = true)
    private Integer status;

    @Excel(name = "物流公司",needMerge=true,isWrap = false)
    private String deliveryCompany;

    @ExcelCollection(name = "商品")
    private List<OrderItem>list;


}
